package com.caigou.service;

import com.caigou.bean.cms.entity.Comment;
import com.caigou.bean.cms.param.CommentFilterParam;
import com.caigou.bean.cms.param.CommentParam;
import com.caigou.bean.cms.param.CommentQueryParam;
import com.caigou.bean.exam.entity.Users;
import com.caigou.util.Result;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommentService {


    Result<List<Comment>> findCommentByCommentTargetId(CommentParam param);

    Result<Integer> addCommentByComment(CommentParam param, Users user);

    Result addComment(CommentParam param, Users user);

    Result<Integer> deleteCommentByComment(CommentParam param);

    Result<PageInfo<Comment>> findCommentByParam(CommentFilterParam param);

    Integer loadCommentCountByArticle(String articleId);

    Result listComment(CommentQueryParam param);

    Result listMyComment(String userId, Integer pageNum, Integer pageSize);
}
